// name , author , say 对应 a.js 中的  name , author , say
// import { name, author, say } from './a.js'
// import { author, name, say } from './a.js'
// 顺序不重要，但名字很重要，要与被应用的名字完全保持一致

import obj from './b.js'
// import { name, author, say } from './b.js'  // xxx

// import obj from './c.js'
// import { name, author, say } from './c.js'

// 对于引入默认导出的模块，import anyName from 'module'， anyName 可以是自定义名称。

// import theSay , { name, author as  bookAuthor } from './d.js'
// console.log(
//     theSay,     // ƒ say() {console.log('hello , world') }
//     name,       // "《React进阶实践指南》"
//     bookAuthor  // "我不是外星人"
// )

// import theSay, * as msg from './d.js'
//
// console.log(
//     theSay, // ƒ say() { console.log('hello , world') }
//     msg // { name:'《React进阶实践指南》' , author: "我不是外星人" ，default:  ƒ say() { console.log('hello , world') } }
// )

// import { bookName as name, say, bookAuthor as author } from './d.js'
// import { name as bookName, author as bookAuthor } from './d.js'
// import say from './d.js'
// console.log( bookName , bookAuthor , say ) //《React进阶实践指南》 我不是外星人
// import { name, author } from './route.js'
// import { bookName, bookAuthor } from './route.js'

function say(){
    // import name from './b.js'
    const name = import('./b.js')
    // export const author = '我不是外星人'
}
say()

console.log('ok')
